From 21e0d175ee78d0c8100d3b803a143b256d3f6583 Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Mon, 9 Aug 2004 15:52:11 +0000 Subject: [PATCH] bitkeeper revision 1.1159.6.6 (41179dabYIpxIUZuaPwVjF-Fu7boXA) Fix restore to have correct arguments. --- tools/python/xen/xm/main.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 5fa8625413..881434a39e 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -282,17 +282,13 @@ class ProgRestore(Prog): info = """Create a domain from a saved state.""" def help(self, args): - print args[0], "FILE [CONFIG]" - print "\nRestore a domain from FILE using configuration CONFIG." + print args[0], "FILE" + print "\nRestore a domain from FILE." - def main(self, help, args): + def main(self, args): if len(args) < 2: self.err("%s: Missing arguments" % args[0]) - savefile = os.path.abspath(args[1]) - if len(args) >= 3: - configfile = os.path.abspath(args[2]) - else: - configfile = None - info = server.xend_domain_restore(savefile, configfile) + savefile = os.path.abspath(args[1]) + info = server.xend_domain_restore(savefile) PrettyPrint.prettyprint(info) xm.prog(ProgRestore) -- 2.30.2